<?php

namespace app\nideshop\validate;

use think\Validate;

class CategoryValidate extends Validate
{
	
	/**
	 * 验证规则
	 * @var [array]
	 */
	protected $rule = [
		'id|分类id' => 'require|number',
	];


	/**
	* 分类数据验证场景
	* @Author   Yichen
	* @DateTime 2020-05-20T23:24:44+0800
	* @return   [type]                   [description]
	*/
	public function sceneCate()
	{
		return $this->only(['id']);
	}
}